<html>
    <head>
        <script>
<!--            var json = {"name":"Lilei","age":18,"sex":true};-->
<!--            alert(json.name);-->

<!--            var array = [-->
<!--            {"name":"Lilei","age":18,"sex":true},-->
<!--            {"name":"HanMeimei","age":20,"sex":false}-->
<!--            ];-->
<!--            alert(array[1].name);-->

            var json = {"className":"三年级一班","students":[
                        {"name":"Lilei","age":18,"sex":true},
                        {"name":"HanMeimei","age":20,"sex":false}
                ]};
        alert(json.students[1].name);
        </script>
    </head>
    
    <body>
        我的第一个网页
    </body>
    
    
</html>